package practice06;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice06
 * @ClassName: Student
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/8 15:17
 * @Copyright 大牛版板所有
 */
public class Student extends Person {
    private int stuNo;
    private String profession;
    private String admissionTime;

    public Student() {
    }

    public Student(String name, String gender, int age, int stuNo, String profession, String admissionTime) {
        super(name, gender, age);
        this.stuNo = stuNo;
        this.profession = profession;
        this.admissionTime = admissionTime;
    }

    public int getStuNo() {
        return stuNo;
    }

    public void setStuNo(int stuNo) {
        this.stuNo = stuNo;
    }

    public String getProfession() {
        return profession;
    }

    public void setProfession(String profession) {
        this.profession = profession;
    }

    public String getAdmissionTime() {
        return admissionTime;
    }

    public void setAdmissionTime(String admissionTime) {
        this.admissionTime = admissionTime;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuNo=" + stuNo +
                ", profession='" + profession + '\'' +
                ", admissionTime='" + admissionTime + '\'' +
                '}';
    }
}
